Holistic Combination of Structural and Textual Code Information for Context Based API Recommendation

نویسندگان

چکیده

Context based API recommendation is an important way to help developers find the needed APIs effectively and efficiently. For effective recommendation, we need not only a joint view of both structural textual code information, but also holistic correlated usage in control data flow graph as whole. Unfortunately, existing methods exploit or information separately. In this work, propose novel approach called APIRec-CST (API Recommendation by Combining Structural Textual information). deep learning model that combines with text source on Graph Network Code Token simultaneously learn features for recommendation. We apply train JDK library 1,914 open-source Java projects evaluate accuracy MRR (Mean Reciprocal Rank) another 6 projects. The results show our achieves respectively top-1, top-5, top-10 60.3, 81.5, 87.7 69.4 percent, significantly outperforms graph-based statistical tree-based A further analysis shows makes sense improves MRR. sensitivity top-k are insensitive number be recommended hole. conduct user study which two groups students asked finish programming tasks without plugin. can faster more accurately feedback usability overwhelmingly positive.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Using Change Context with Statistical Learning for API Code Recommendation

Learning and remembering how to use APIs is hard. While codecompletion tools list all the API methods available on a given object, reading through a long list of API method names and their associated documentation is tedious, and users can be easily overloaded with too many suggestions. While several researchers proposed techniques for recommending APIs, their accuracy is low. We present a nove...

متن کامل

Design and implementation of a WEBGIS-based recommendation system based on context-awareness for tourism planning

Today, tourism is one of the most lucrative industries in the world. Due to the large amount of information that exists about the points of Interest (POI) of a city, the tourist is faced with an overload of information. As a result, a recommending system is needed to recommend suitable tourist places to the tourist in the shortest time. In order to offer a better offer, the interests and contex...

متن کامل

Image retrieval based on structural and textual context

In this paper, We propose a geometric method who use implicitly of textual and structural context of XML elements and we are particularly interested by improve the effectiveness of various structural factors for multimedia retrieval. Using a geometric metric, we can represent structural information in XML document with a vector for each element. Experimental evaluation is carried out using the ...

متن کامل

Using textual and structural context for searching Multimedia Elements

We investigate in this paper the use of XML structure in multimedia retrieval, particularly in context-based image retrieval. We propose two methods to represent multimedia objects: the first one is based on an implicit use of textual and structural context of multimedia objects, whereas the second one is based on an explicit use of both sources. Experimental evaluation is carried out using the...

متن کامل

Investigating the combination of structural and textual information about multimedia retrieval

The expansion of structured information in different applications introduces a new ambiguity in multimedia retrieval in semi-structured documents. We investigate in this paper the combination of textual and structural context for multimedia retrieval in XML document thus we present a indexing model which combines textual and structural information. We propose a geometric method who use implicit...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

ژورنال

عنوان ژورنال: IEEE Transactions on Software Engineering

سال: 2022

ISSN: ['0098-5589', '1939-3520', '2326-3881']

DOI: https://doi.org/10.1109/tse.2021.3074309